package DemoLibrarySystem;

//管理员指令：gly

import java.util.ArrayList;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        //创建操作对象
        LibraryOperator operator=new LibraryOperator();
        AccountOperator operator1=new AccountOperator();
        //为集合中添加元素
        Library l1=new Library(1,"我的鬼宠是钟馗","烟火","番茄小说",20,60);
        Library l2=new Library(2,"天命神算","寿比南山","番茄小说",18.5,75);
        Library l3=new Library(3,"病从梦中坐起，反派竟是我自己","六个葫芦","番茄小说",32,52);
        Library l4=new Library(4,"第三人称单数","村上春树","未知",22.9,64);
        Library l5=new Library(5,"丰乳肥臀","莫言","浙江文艺出版社",17.6,53);
        Library l6=new Library(13283535,"活着","余华","青岛出版社",23.7,43);
        Library l7=new Library(73453122,"文城","余华","青岛出版社",15.9,75);
        Library l8=new Library(86453645,"人生","余华","青岛出版社",20.5,23);
        Library l9=new Library(93522243,"平凡的世界","路遥","青岛出版社",26,15);
        Library l10=new Library(10532235,"人生告白","季羡林","当当网",25,26);
        operator.Add(l1);
        operator.Add(l2);
        operator.Add(l3);
        operator.Add(l4);
        operator.Add(l5);
        operator.Add(l6);
        operator.Add(l7);
        operator.Add(l8);
        operator.Add(l9);
        operator.Add(l10);
        Account a1=new Account("lsq","123456");
        operator1.AddAccount(a1);

        //启动系统
        while (true){
            int key=operator1.startLog();
            operator.startIn(key);
        }
    }
}
